企业商户作废员工企业支付额度卡 
企业商户作废员工企业支付额度卡。该接口允许服务商作废已下发给员工的企业支付额度卡,作废后该额度卡将无法继续使用,可指定作废原因。当额度卡使用错误、发放错误或需要提前回收额度时,企业可通过此接口作废额度卡。
| 请求参数 | 类型 | 描述 | 
|---|---|---|
| employee_id | string | 微信授权关系ID | 
| card_no | string | 企业支付额度卡卡号 | 
| json | object | 声明请求的 JSON数据结构 | 
| sp_mchid | string | 服务商商户号 | 
| sub_mchid | string | 出资子商户号 | 
| reason | string | 作废原因 | 
php
$instance->v3->webizpay->employees->_employee_id_->quotaCards->_card_no_->cancel->postAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/cancel')->postAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/cancel']->postAsync([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->webizpay->employees->_employee_id_->quotaCards->_card_no_->cancel->post([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/cancel')->post([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/webizpay/employees/{employee_id}/quota-cards/{card_no}/cancel']->post([
  'employee_id' => 'WeBizPay_a968402a-73bb-43e2-9e1a-8371b0ca3d7c',
  'card_no' => '1068019671702503425',
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'reason'    => '商户主动作废',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 | 
|---|---|---|
| sp_mchid | string | 服务商商户号 | 
| sub_mchid | string | 出资子商户号 | 
| employee_id | string | 微信授权关系ID | 
| card_no | string | 企业支付额度卡卡号 | 
| card_state | string | 卡片状态 ACTIVE|DISABLED枚举值之一 | 
| card_disabled_time | string | 卡片失效时间 | 
参阅 官方文档